package com.example.ui.contact.chat;

import android.content.res.Resources;
import android.util.TypedValue;

public class Util {

	public static int dpToPx(Resources res, int dp) {
		return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, res.getDisplayMetrics());
	}
	public void UtilStr(String phone){
		String temp = new String(phone);
        String[] str = temp.split("\\|");
        int str_length = str.length;
			L.Debug("str length", ""+str_length);        
        for(int i=0;i<str_length;i++){
  			L.Debug("str"+"["+i+"]", str[i]);
        	int length = str[i].length();
        }
	}
}
